package com.qf.myschool.service.impl;

import com.qf.myschool.dao.ITeacherDao;
import com.qf.myschool.dao.impl.TeacherDAOImpl;
import com.qf.myschool.service.ITeacherService;
import com.qf.myschool.vo.LoginUserVo;

/**
*老师业务实现类
 * @version 1.0
 * @auth sx
 * @date 2020/3/30
 */
public class TeacherServiceImpl implements ITeacherService {
    /**
    *创建老师数据访问对象
    */
    ITeacherDao teaDao=new TeacherDAOImpl();

    /**
     *老师登录
     *@param u1
     *@return int
     */
    @Override
    public int login(LoginUserVo u1) {
        return teaDao.login(u1);
    }

    /**
     *老师修改密码
     *@param name
     * @param  newPwd
     *@return int
     */
    @Override
    public int modifyPwd(String name, String newPwd) {
        return teaDao.modifyPwd(name,newPwd);
    }
}
